#include <stdio.h>
#include <string.h>
int main()
{
    int ch = 0;
    int num = 0;
    char arr[20] = {0};
    while(1)
    {
    num = 0;
    memset(arr,0,sizeof(arr));
    ch = getchar();
    while(ch != EOF && ch != '\n')
    {
        arr[num] = (char)ch;
        printf("input = %c\n",arr[num]);
        num++;
        ch = getchar();
    }
    printf("num = %d\n",num);
    printf("string = %s\n",arr);
    }
    return 0;
}
